package uy.edu.ort.excepcionesdb;

/**
 *
 * @author 153287-154559
 */
public class DBAgregarException extends Exception {
    
    private String message;
    private Throwable cause;

    public DBAgregarException(Throwable cause, String message) {
        this.message = message;
        this.cause = cause;
    }

    @Override
    public String getMessage() {
        return "ERROR en inserción de datos: " + this.message;
    }

    @Override
    public Throwable getCause() {
        return this.cause;
    }
}
